//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.keafmd.result;

public enum ErrEums implements IErrEums<ErrEums> {
    NO_FOUND(404, "您访问的地址不存在"),
    SUCCESS(200, "操作成功"),
    NO_LOGIN(1000, "请先登录"),
    NO_AUTH(1001, "您没有操作权限"),
    ERROR(50000, "系统繁忙,请稍后重试");

    private final int code;
    private final String message;

    private ErrEums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public ErrEums get() {
        return this;
    }

    public static ErrEums get(int code) {
        ErrEums[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            ErrEums err = var1[var3];
            if (err.code == code) {
                return err;
            }
        }

        return ERROR;
    }
}
